onEvent('recipes', event => {
    const recipe = [
        {
            input: ['psi:psidust', 'evilcraft:dark_gem_crushed', 'minecraft:redstone', 'evilcraft:dull_dust'],
            output: 'kubejs:stardust_block',
            ocount: 2,
            mini: 1,
            drain: 1
        },
        {
            input: ['mekanism:ingot_refined_glowstone', 'projectred-core:red_ingot', 'kubejs:starmetal_frame', 'kubejs:paper_3'],
            output: 'rftoolsbase:machine_frame',
            ocount: 2,
            mini: 2,
            drain: 2
        },
        {
            input: ['mekanism:ingot_refined_glowstone', 'projectred-core:red_ingot', 'kubejs:starmetal_frame', 'kubejs:party_2_ingot'],
            output: 'rftoolsbase:machine_frame',
            ocount: 2,
            mini: 2,
            drain: 2
        },
        {
            input: ['astralsorcery:glass_lens', 'emendatusenigmatica:brass_gear', 'kubejs:compressed_marble', 'kubejs:party_1_ingot'],
            output: '3x astralsorcery:spectral_relay',
            ocount: 2,
            mini: 2,
            drain: 2
        },
        {
            input: ['minecraft:iron_sword', 'minecraft:blaze_rod', 'evilcraft:vengeance_essence', 'kubejs:stabilizing_unit'],
            output: 'forbidden_arcanus:mystical_dagger',
            ocount: 2,
            mini: 2,
            drain: 2
        },
        {
            input: ['forbidden_arcanus:dark_matter', 'elementalcraft:minor_rune_slate', 'elementalcraft:minor_rune_slate', 'forbidden_arcanus:dark_matter'],
            output: 'bloodmagic:blankslate',
            ocount: 2,
            mini: 2,
            drain: 2
        },
        {
            input: ['kubejs:infusion_ingot', 'minecraft:glass', 'psi:psimetal', 'botania:pixie_dust'],
            output: 'bloodmagic:soulgempetty',
            ocount: 2,
            mini: 2,
            drain: 2
        },
        {
            input: ['bloodmagic:soulgemlesser','bloodmagic:defaultcrystal','kubejs:party_1_ingot','botania:terrasteel_ingot'],
            output: 'bloodmagic:soulgemcommon',
            ocount: 2,
            mini: 240,
            drain: 50
        },
        {
            input: ['evilcraft:bowl_of_promises_dusted','bloodmagic:blankslate','bloodmagic:blankslate','kubejs:aquamarine_ingot'],
            output: 'bloodmagic:reinforcedslate',
            ocount: 1,
            mini: 4,
            drain:4
        },
        {
            input: ['evilcraft:bowl_of_promises_dusted','bloodmagic:blankslate','bloodmagic:blankslate','kubejs:aquamarine_ingot'],
            output: 'bloodmagic:reinforcedslate',
            ocount: 1,
            mini: 4,
            drain:4
        },
        
        {
            input: ['forbidden_arcanus:soul','minecraft:book','minecraft:book','minecraft:book'],
            output: 'ars_nouveau:whelp_charm',
            ocount: 2,
            mini: 2,
            drain:2
        },
        {
            input: ['ars_nouveau:blank_parchment','forbidden_arcanus:soul','quark:orange_shard','emendatusenigmatica:bronze_plate'],
            output: 'ars_nouveau:carbuncle_charm',
            ocount: 2,
            mini: 2,
            drain:2
        },
        {
            input: ['minecraft:brewing_stand','minecraft:crafting_table','minecraft:cauldron','minecraft:emerald'],
            output: 'ars_nouveau:wixie_charm',
            ocount: 2,
            mini: 2,
            drain:2
        }

    ]

    recipe.forEach((i) => {
        event.custom({
            "type": "bloodmagic:soulforge",
            "input0": { "item": i.input[0] },
            "input1": { "item": i.input[1] },
            "input2": { "item": i.input[2] },
            "input3": { "item": i.input[3] },
            "output": { "item": i.output },
            "minimumDrain": i.mini, "drain": i.drain,
            "inputs": [
                { "item": i.input[0] },
                { "item": i.input[1] },
                { "item": i.input[2] },
                { "item": i.input[3] }],
            "outputs": [{ "item": i.output, "count": i.ocount }]
        });
    });

    event.custom({
        "type":"bloodmagic:alchemytable",
        "input": [
            { "item": 'bloodmagic:reagentair' },
            { "item": 'darkutils:blank_plate' }
        ],
        "output": { "item": 'darkutils:vector_plate' , "count" : 6 },
        "syphon":1000,
        "ticks":20,
        "upgradeLevel":2
    });



    event.custom({
        "type": "bloodmagic:soulforge",
        "input0": { "item":'bloodmagic:defaultcrystal' },
        "input1": { "item": 'emendatusenigmatica:steel_ingot' },
        "output": { "item": 'bloodmagic:ingot_hellforged' },
        "minimumDrain": 20, "drain": 100,
        "inputs": [
            { "item": 'bloodmagic:defaultcrystal'  },
            { "item": 'emendatusenigmatica:steel_ingot' }],
        "outputs": [{ "item":'bloodmagic:ingot_hellforged', "count": 1 }]
    });


    event.custom({
        "type":"bloodmagic:arc",
        "input":{"item":'betternether:bone_mushroom'},
        "tool":{"tag":"bloodmagic:arc/cuttingfluid"},
        "output":{"item":'bloodmagic:defaultcrystal',"count":1},
        "consumeingredient":false
    })

    event.custom({
        "type":"bloodmagic:arc",
        "input":{"item":'betternether:agave'},
        "tool":{"tag":"bloodmagic:arc/cuttingfluid"},
        "output":{"item":'minecraft:dragon_breath',"count":1},
        "consumeingredient":false
    })

    event.custom({
        "type":"bloodmagic:arc",
        "input":{"item":'betternether:nether_reed'},
        "tool":{"tag":"bloodmagic:arc/cuttingfluid"},
        "output":{"item":'astralsorcery:stardust',"count":1},
        "consumeingredient":false
    })

    event.custom({
        "type":"bloodmagic:arc",
        "input":{"item":'betternether:soul_vein'},
        "tool":{"tag":"bloodmagic:arc/cuttingfluid"},
        "output":{"item":'bloodmagic:weakbloodshard',"count":1},
        "consumeingredient":false
    })


    event.custom({
        "type":"bloodmagic:altar",
        "input":{"item":'bloodmagic:growing_doubt'},
        "output":{"item":'betternether:soul_vein'},
        "upgradeLevel":1,"altarSyphon":5000,"consumptionRate":20,"drainRate":20,
        
    })

    event.custom({
        "type":"bloodmagic:altar",
        "input":{"item":'bloodmagic:primitive_crystalline_resonator'},
        "output":{"item":'bloodmagic:crystalline_resonator'},
        "upgradeLevel":1,"altarSyphon":5000,"consumptionRate":20,"drainRate":20,
        
    })

    event.custom({
        "type":"bloodmagic:altar",
        "input":{"item":'astralsorcery:infused_wood_infused'},
        "output":{"item":'bloodmagic:woodbrickpath'},
        "upgradeLevel":4,"altarSyphon":100000,"consumptionRate":20,"drainRate":20,
        
    })

    /**
     * "bloodmagic:altar/apprenticebloodorb":{"recipe":{
     * "type":"bloodmagic:altar",
     * "input":{"tag":"forge:storage_blocks/redstone"},
     * "output":{"item":"bloodmagic:apprenticebloodorb"},
     * "upgradeLevel":1,"altarSyphon":5000,"consumptionRate":5,"drainRate":5},
     * "inputs":[{"tag":"forge:storage_blocks/redstone"}],
     * "outputs":[{"item":"bloodmagic:apprenticebloodorb","count":1}]}
     */


    
});
/**
 * "bloodmagic:alchemytable/reagent_binding":{"recipe":{
 * "type":"bloodmagic:alchemytable",
 * "input":[
 * {"tag":"forge:dusts/glowstone"},
 * {"tag":"forge:dusts/redstone"},
 * {"tag":"forge:gunpowder"},
 * {"tag":"forge:nuggets/gold"}],
 * "output":{"item":"bloodmagic:reagentbinding"},
 * "syphon":1000,"ticks":200,"upgradeLevel":3},
 * 
 * 
 * 
 * "inputs":[{"tag":"forge:dusts/glowstone"},{"tag":"forge:dusts/redstone"},{"tag":"forge:gunpowder"},{"tag":"forge:nuggets/gold"}],
 * "outputs":[{"item":"bloodmagic:reagentbinding","count":1}]}
 * 
 * 
 */
